<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SmsPool extends Model
{
    protected $table = 'sms_pools';

    protected $fillable = [
        'id',
        'gid',
        'zjhm',
        'name',
        'email',
        'phone',
        'title',
        'content',
        'status',
        'type',
        'sms_send_at',
        'created_at',
        'updated_at',
        'relation_id',
        'relation_table',
        'relation_type',
    ];

    const STATUS_PENDING = 1;
    const STATUS_SUCCESS = 2;
    const STATUS_FAILED = 3;
    const STATUS_SENDING = 4;

    const TYPE_BY_PHONE = 1;
    const TYPE_BY_EMAIL = 2;
    const TYPE_BY_PHONEANDEMAIL = 3;

}
